package com.ym.medical.dao;

import com.ym.medical.domain.entity.AxbResultEntity;
import com.ym.medical.domain.vo.PhoneNotStopVo;
import com.ym.medical.domain.vo.RecordAndTimeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

/**
 * 电话绑定记录Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface AxbResultDao extends Mapper<AxbResultEntity> {
    /***
     * 查询绑定结果是否有记录
     * @param doctPhone
     * @param time
     * @return
     */
    AxbResultEntity selectBindState(
            @Param("doctPhone") String doctPhone,
            @Param("time") Date time);
    /**
     *  服务器异常宕机未挂机订单列表
     * @return
     */
    List<PhoneNotStopVo> selectNotStopOrder();
    /**
     * 录音文件信息
     * @param ioId
     * @return
     */
    List<RecordAndTimeVo>  selectRecordInfo(Long ioId);
}
